package com.pair.micro.fee.modules.charge.convert;

import com.pair.micro.fee.modules.charge.entity.ChargeConfigEntity;
import com.pair.micro.fee.modules.charge.entity.ChargeProjectEntity;
import com.pair.micro.fee.modules.charge.vo.ChargeConfigVO;
import com.pair.micro.fee.modules.charge.vo.ChargeProjectVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 费用设置
 *
 * @author xubz
 *
 */
@Mapper
public interface ChargeProjectConvert {
    ChargeProjectConvert INSTANCE = Mappers.getMapper(ChargeProjectConvert.class);

    ChargeProjectEntity convert(ChargeProjectVO vo);

    ChargeProjectVO convert(ChargeProjectEntity entity);

    List<ChargeProjectVO> convertList(List<ChargeProjectEntity> list);

}